package com.rong.tools.mappers;

import com.rong.tools.entity.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 周厚荣
 * @date 2025/4/20 23:24
 */
@Mapper
public interface CategoryMapper {
    List<Category>  selectAllCategories();
    Category selectCategoryById(@Param("cid") Integer cid);
    Integer selectCategoryIdByName(@Param("cname") String cname);
    int insertCategory(Category category);
    int updateCategory(Category category);
    int deleteCategory(@Param("cid") Integer tid);

}
